package avicit.cbb.techclass.tabledefine.commtablemanager.action.rest;


import avicit.cbb.techclass.tabledefine.commtablemanager.action.service.CommTableManagerService;
import avicit.cbb.techclass.tabledefine.commtablemanager.domain.*;
import avicit.cbb.techclass.tabledefine.commtempletmanager.action.rest.CommTempletManagerRest;
import avicit.cbb.techclass.tabledefine.commtempletmanager.domain.CbbTempletCode;
import avicit.platform6.commons.utils.web.TreeNode;
import avicit.platform6.core.context.ThreadContextHelper;
import avicit.platform6.core.dao.Paging;
import avicit.platform6.core.domain.BeanBase;
import avicit.platform6.core.rest.msg.ResponseMsg;
import avicit.platform6.core.jdbc.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Vector;

/**
 * @金航数码科技有限责任公司
 * @作者：jiam
 * @邮箱：jiam@avic-digital.com
 * @创建时间： 2020-12-31 14:52
 * @类说明：oa_travel_rbRest
 * @修改记录：
 */
@RestController
@Api(tags = "CommTableManagerService", description = "CommTableManager")
@RequestMapping("/api/avicit/cbb/techclass/tabledefine/commtablemanager/action/rest/CommTableManagerRest")
public class CommTableManagerRest {


    private static final Logger LOGGER = LoggerFactory.getLogger(CommTableManagerRest.class);

    @Autowired
    private CommTableManagerService commTableManagerService;



    @PostMapping("/getTableIdBysysIdAndTableName")
    @ApiOperation(value = "得到tableid")
    public ResponseMsg<String> getTableIdBysysIdAndTableName(@ApiParam(value = "map", name = "map") @RequestBody Map<String, Object> map) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String sysId = (String) map.get("sysId");
            String tableName = (String) map.get("tableName");
            Map<String, Object> param = (Map<String, Object>) map.get("param");
            String tableId = commTableManagerService.getTableIdBysysIdAndTableName(sysId, tableName, param);
            responseMsg.setResponseBody(tableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    @PostMapping("/getPageDetailList")
    @ApiOperation(value = "获取列信息")
    public ResponseMsg<Map<String, Object>> getPageDetailList(@ApiParam(value = "map", name = "map") @RequestBody Map<String, Object> map) {
        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
        try {
            Paging<CbbTabColumns> page = (Paging<CbbTabColumns>) map.get("page");
            Map<String, Object> parameter = (Map<String, Object>) map.get("parameter");
            String sysId = (String) map.get("sysId");
            Map<String, Object> maps = commTableManagerService.getPageDetailList(page, parameter, sysId);
            responseMsg.setResponseBody(maps);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 根据tableId查找表是否为真是表
     * @param tableId
     * @return
     */
    @PostMapping("/findTableisTureTable")
    @ApiOperation(value = "根据tableId查找表是否为真是表")
    public ResponseMsg<String> findTableisTureTable(@ApiParam(value = "参考模板字段信息跳转编辑取值", name = "tableId") @RequestBody String tableId) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String tableisTureTable = null;
            tableisTureTable = commTableManagerService.findTableisTureTable(tableId);
            responseMsg.setResponseBody(tableisTureTable);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     *  判断该表是否有值
     * @param tableId
     * @return
     */
    @PostMapping("/checkColIsMust")
    @ApiOperation(value = "判断该表是否有值")
    public ResponseMsg<Boolean> checkColIsMust(@ApiParam(value = "判断该表是否有值", name = "tableId") @RequestBody String tableId) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        try {
            boolean b = commTableManagerService.checkColIsMust(tableId);
            responseMsg.setResponseBody(b);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    @PostMapping("/getHiddenPageDetailList")
    @ApiOperation(value = "")
    public ResponseMsg<Map<String, Object>> getHiddenPageDetailList(@ApiParam(value = "", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
        try {
            Paging<CbbTabColumns> page = (Paging<CbbTabColumns>) map.get("page");
            Map<String,Object> parameter = (Map<String, Object>) map.get("parameter");
            String sysId = (String) map.get("sysId");
            Map<String, Object> hiddenPageDetailList = commTableManagerService.getHiddenPageDetailList(page, parameter, sysId);
            responseMsg.setResponseBody(hiddenPageDetailList);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 删除字段
     * @param map
     */
    @PostMapping("/deleteCommCbbTabColumnsById")
    @ApiOperation(value = "删除字段")
    public ResponseMsg deleteCommCbbTabColumnsById(@ApiParam(value = "删除字段", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            CbbTabColumns[] ccArray = (CbbTabColumns[]) map.get("ccArray");
            String sysId = (String) map.get("sysId");
            String nodeId = (String) map.get("nodeId");
            String nodeName = (String) map.get("nodeName");
            String tableName = (String) map.get("tableName");
            String isTrueTable = (String) map.get("isTrueTable");
            String orgId = (String) map.get("orgId");
            Map<String,Object> param = (Map<String, Object>) map.get("param");
            commTableManagerService.deleteCommCbbTabColumnsById(ccArray, sysId, nodeId, nodeName, tableName, isTrueTable, orgId, param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 更新
     * @param tableId
     */
    @PostMapping("/updateColOrder")
    @ApiOperation(value = "更新")
    public ResponseMsg updateColOrder(@ApiParam(value = "更新", name = "tableId") @RequestBody String tableId) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            commTableManagerService.updateColOrder(tableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 更新基本字段及实体表信息
     * @param map
     */
    @PostMapping("/updateCbbTabColumns")
    @ApiOperation(value = "更新基本字段及实体表信息")
    public ResponseMsg updateCbbTabColumns(@ApiParam(value = "更新基本字段及实体表信息", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            CbbTabColumns[] ccArray = (CbbTabColumns[]) map.get("ccArray");
            String sysId = (String) map.get("sysId");
            String nodeId = (String) map.get("nodeId");
            String nodeName = (String) map.get("nodeName");
            String tableName = (String) map.get("tableName");
            boolean isTrue = (boolean) map.get("isTrue");
            Map<String, Object> params = (Map<String, Object>) map.get("params");
            commTableManagerService.updateCbbTabColumns(ccArray, sysId, nodeId, nodeName, tableName, isTrue, params);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 存在，那么判断是否已经创建菜单
     * @param toString
     * @return
     */
    @PostMapping("/checkMenuPath")
    @ApiOperation(value = "存在，那么判断是否已经创建菜单")
    public ResponseMsg<Boolean> checkMenuPath(@ApiParam(value = "存在，那么判断是否已经创建菜单", name = "toString") @RequestBody String toString) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        try {
            boolean b = commTableManagerService.checkMenuPath(toString);
            responseMsg.setResponseBody(b);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 创建菜单
     * @param map
     */
    @PostMapping("/createMenu")
    @ApiOperation(value = "创建菜单")
    public ResponseMsg createMenu(@ApiParam(value = "创建菜单", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            String toString = (String) map.get("toString");
            String sysId = (String) map.get("sysId");
            String tableName = (String) map.get("tableName");
            Map<String, Object> params = (Map<String, Object>) map.get("params");
            commTableManagerService.createMenu(toString, sysId, tableName, params);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 得到tableID
     * @param map
     * @return
     */
    @PostMapping("/getCbbTableId")
    @ApiOperation(value = "得到tableID")
    public ResponseMsg<String> getCbbTableId(@ApiParam(value = "得到tableID", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<String> responseMsg = null;
        String cbbTableId = null;
        try {
            responseMsg = new ResponseMsg<>();
            String sysId = (String) map.get("sysId");
            String tableName = (String) map.get("tableName");
            cbbTableId = commTableManagerService.getCbbTableId(sysId, tableName);
            responseMsg.setResponseBody(cbbTableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }


    /**
     * 删除代码维护
     * @param cbbTabColCode
     */
    @PostMapping("/deleteCbbTabColCodeById")
    @ApiOperation(value = "删除代码维护")
    public ResponseMsg deleteCbbTabColCodeById(@ApiParam(value = "删除代码维护", name = "cbbTabColCode") @RequestBody CbbTabColCode cbbTabColCode) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            commTableManagerService.deleteCbbTabColCodeById(cbbTabColCode);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 新增
     * @param map
     */
    @PostMapping("/insertTabColCodeByJson")
    @ApiOperation(value = "新增")
    public ResponseMsg insertTabColCodeByJson(@ApiParam(value = "新增", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            String insertData = (String) map.get("insertData");
            String tableId = (String) map.get("tableId");
            String sysId = (String) map.get("sysId");
            commTableManagerService.insertTabColCodeByJson(insertData, tableId, sysId);// 调用新增方法
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 更新
     * @param map
     */
    @PostMapping("/updateCbbTabColumnsTemp")
    @ApiOperation(value = "更新")
    public ResponseMsg updateCbbTabColumnsTemp(@ApiParam(value = "更新", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            CbbTabColumns[] ccArray = (CbbTabColumns[]) map.get("ccArray");
            String sysId = (String) map.get("sysId");
            String nodeId = (String) map.get("nodeId");
            String nodeName = (String) map.get("nodeName");
            commTableManagerService.updateCbbTabColumnsTemp(ccArray, sysId, nodeId, nodeName);// 更新基本字段及实体表信息
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 更新
     * @param map
     */
    @PostMapping("/updateCbbTabColCode")
    @ApiOperation(value = "更新")
    public ResponseMsg updateCbbTabColCode(@ApiParam(value = "更新", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            CbbTabColumns[] ccArrayCode = (CbbTabColumns[]) map.get("ccArrayCode");
            String sysId = (String) map.get("sysId");
            String nodeId = (String) map.get("nodeId");
            String nodeName = (String) map.get("nodeName");
            commTableManagerService.updateCbbTabColumnsTemp(ccArrayCode, sysId, nodeId, nodeName);// 更新基本字段及实体表信息
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 得到结果
     * @param map
     */
    @PostMapping("/getPageCodeDetailList")
    @ApiOperation(value = "得到结果")
    public ResponseMsg<Page<Map<String,Object>>> getPageCodeDetailList(@ApiParam(value = "得到结果", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Page<Map<String, Object>>> responseMsg = new ResponseMsg<Page<Map<String, Object>>>();
        try {
            Paging<CbbTempletCode> page = (Paging<CbbTempletCode>) map.get("page");
            Map<String,Object> parameter = (Map<String, Object>) map.get("parameter");
            Page<Map<String, Object>> pageCodeDetailList = commTableManagerService.getPageCodeDetailList(page, parameter);
            responseMsg.setResponseBody(pageCodeDetailList);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;

    }


    /**
     * 导出excel
     * @param map
     */
    @PostMapping("/exportExcelModule")
    @ApiOperation(value = "导出excel")
    public ResponseMsg exportExcelModule(@ApiParam(value = "导出excel", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            List<String> headValue = (List<String>) map.get("headValue");
            ByteArrayOutputStream os = (ByteArrayOutputStream) map.get("os");
            commTableManagerService.exportExcelModule(headValue, os);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 得到分页
     * @param map
     * @return
     */
    @PostMapping("/getPageDetailListForZL")
    @ApiOperation(value = "得到分页")
    public ResponseMsg<Map<String, Object>> getPageDetailListForZL(@ApiParam(value = "得到分页", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
        Map<String, Object> pageDetailListForZL = null;
        try {
            Paging<CbbTabColumns> page = (Paging<CbbTabColumns>) map.get("page");
            Map<String,Object> parameter = (Map<String, Object>) map.get("parameter");
            String sysId = (String) map.get("sysId");
            pageDetailListForZL = commTableManagerService.getPageDetailListForZL(page, parameter, sysId);
            responseMsg.setRetCode("200");
            responseMsg.setResponseBody(pageDetailListForZL);
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }



    /**
     * 根据字段ID查找字段旧的配置信息
     * @param columnId
     * @return
     */
    @PostMapping("/getCbbTabColumnsById")
    @ApiOperation(value = "根据字段ID查找字段旧的配置信息")
    public ResponseMsg<CbbTabColumns> getCbbTabColumnsById(@ApiParam(value = "根据字段ID查找字段旧的配置信息", name = "columnId") @RequestBody String columnId) {
        ResponseMsg<CbbTabColumns> responseMsg = new ResponseMsg<>();
        try {
            CbbTabColumns cbbTabColumnsById = commTableManagerService.getCbbTabColumnsById(columnId);
            responseMsg.setResponseBody(cbbTabColumnsById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 如果为组合项或者统计生成则删除旧的配置信息
     * @param columnId
     */
    @PostMapping("/deleteConfig")
    @ApiOperation(value = "如果为组合项或者统计生成则删除旧的配置信息")
    public ResponseMsg deleteConfig(@ApiParam(value = "如果为组合项或者统计生成则删除旧的配置信息", name = "columnId") @RequestBody String columnId) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            commTableManagerService.deleteConfig(columnId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 保存组合项的配置信息
     * @param map
     */
    @PostMapping("/saveConfigGroupNew")
    @ApiOperation(value = "保存组合项的配置信息")
    public ResponseMsg saveConfigGroupNew(@ApiParam(value = "保存组合项的配置信息", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            String idSet = (String) map.get("idSet");
            String groupJson = (String) map.get("groupJson");
            String orgId = (String) map.get("orgId");
            String deptId = (String) map.get("deptId");
            String sysId = (String) map.get("sysId");
            commTableManagerService.saveConfigGroupNew(idSet, groupJson, orgId, deptId, sysId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 统计字段顺序数组
     * @param map
     */
    @PostMapping("/saveConfigTJSC")
    @ApiOperation(value = "统计字段顺序数组")
    public ResponseMsg saveConfigTJSC(@ApiParam(value = "统计字段顺序数组", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            String idSet = (String) map.get("idSet");
            String[] configColumns = (String[]) map.get("configColumns");
            String[] configInput = (String[]) map.get("configInput");
            String tableId = (String) map.get("tableId");
            String orgId = (String) map.get("orgId");
            String deptId = (String) map.get("deptId");
            String sysId = (String) map.get("sysId");
            String[] orders = (String[]) map.get("orders");
            String operation = (String) map.get("operation");
            commTableManagerService.saveConfigTJSC(idSet, configColumns, configInput, tableId, orgId, deptId, sysId, orders, operation);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 根据nodeId判断，1、是否为2级节点2、该字段是否为案卷级表中的字段
     * @param nodeId
     */
    @PostMapping("/checkNodeIsSecond")
    @ApiOperation(value = "根据nodeId判断，1、是否为2级节点2、该字段是否为案卷级表中的字段")
    public ResponseMsg<Boolean> checkNodeIsSecond(@ApiParam(value = "根据nodeId判断，1、是否为2级节点2、该字段是否为案卷级表中的字段", name = "nodeId") @RequestBody String nodeId) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        boolean b = false;
        try {
            b = commTableManagerService.checkNodeIsSecond(nodeId);
            responseMsg.setResponseBody(b);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }
    /**
     * 根据nodeId判断，1、是否为2级节点2、该字段是否为案卷级表中的字段
     * @param map
     */
    @PostMapping("/checkTabIsAJJ")
    @ApiOperation(value = "根据nodeId判断，1、是否为2级节点2、该字段是否为案卷级表中的字段")
    public ResponseMsg<Boolean> checkTabIsAJJ(@ApiParam(value = "根据nodeId判断，1、是否为2级节点2、该字段是否为案卷级表中的字段", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        boolean b = false;
        try {
            String tableId = (String) map.get("tableId");
            String nodeId = (String) map.get("nodeId");
            b = commTableManagerService.checkTabIsAJJ(tableId, nodeId);
            responseMsg.setResponseBody(b);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }

    /**
     * 双层结构类型(0：案卷，1：盒)
     * @param nodeId
     */
    @PostMapping("/getTabLayerType")
    @ApiOperation(value = "双层结构类型(0：案卷，1：盒)")
    public ResponseMsg<String> getTabLayerType(@ApiParam(value = "双层结构类型(0：案卷，1：盒)", name = "nodeId") @RequestBody String nodeId) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        String tabLayerType = null;
        try {
            tabLayerType = commTableManagerService.getTabLayerType(nodeId);
            responseMsg.setResponseBody(tabLayerType);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }


    /**
     * 查找通用代码,并拼成json串
     * @param id
     * @return
     */
    @PostMapping("/getLookupCodeByColumnId")
    @ApiOperation(value = "查找通用代码,并拼成json串")
    public ResponseMsg<List<Object[]>> getLookupCodeByColumnId(@ApiParam(value = "查找通用代码,并拼成json串", name = "id") @RequestBody String id) {
        ResponseMsg<List<Object[]>> responseMsg = new ResponseMsg<>();
        List<Object[]> lookupCodeByColumnId = null;
        try {
            lookupCodeByColumnId = commTableManagerService.getLookupCodeByColumnId(id);
            responseMsg.setResponseBody(lookupCodeByColumnId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }


    /**
     * 查找可组合字段
     * @param map
     * @return
     */
    @PostMapping("/getColNmaeByColType")
    @ApiOperation(value = "查找可组合字段")
    public ResponseMsg<String> getColNmaeByColType(@ApiParam(value = "查找可组合字段", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        String colNmaeByColType = null;
        try {
            String tableId = (String) map.get("tableId");
            String colType = (String) map.get("colType");
            String orgId = (String) map.get("orgId");
            String id = (String) (String) map.get("id");
            String deptId = (String) map.get("deptId");
            String sysId = (String) map.get("sysId");
            String nodeId = (String) map.get("nodeId");
            colNmaeByColType = commTableManagerService.getColNmaeByColType(tableId, colType, id, orgId, deptId, sysId, nodeId);
            responseMsg.setResponseBody(colNmaeByColType);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }



    /**
     * 获取字段配置信息
     * @param id
     * @return
     */
    @PostMapping("/getGroupConfigNew")
    @ApiOperation(value = "获取字段配置信息")
    public ResponseMsg<String> getGroupConfigNew(@ApiParam(value = "获取字段配置信息", name = "id") @RequestBody String id) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        String groupConfigNew = null;
        try {
            groupConfigNew = commTableManagerService.getGroupConfigNew(id);
            responseMsg.setResponseBody(groupConfigNew);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }


    /**
     * 根据字段ID查找字段的配置信息
     * @param id
     * @return
     */
    @PostMapping("/getTjscConfigformanager")
    @ApiOperation(value = "根据字段ID查找字段的配置信息")
    public ResponseMsg<List<String>> getTjscConfigformanager(@ApiParam(value = "根据字段ID查找字段的配置信息", name = "id") @RequestBody String id) {
        ResponseMsg<List<String>> responseMsg = new ResponseMsg<>();
        List<String> tjscConfigformanager = null;
        try {
            tjscConfigformanager = commTableManagerService.getTjscConfigformanager(id);
            responseMsg.setResponseBody(tjscConfigformanager);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }


    /**
     * 得到配置信息
     * @param id
     * @return
     */
    @PostMapping("/getTjscConfig")
    @ApiOperation(value = "得到配置信息")
    public ResponseMsg<Map<String, Object>> getTjscConfig(@ApiParam(value = "得到配置信息", name = "id") @RequestBody String id) {
        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
        Map<String, Object> tjscConfig = null;
        try {
            tjscConfig = commTableManagerService.getTjscConfig(id);
            responseMsg.setResponseBody(tjscConfig);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }


    /**
     * 得到名字
     * @param map
     * @return
     */
    @PostMapping("/getCustomValue")
    @ApiOperation(value = "得到名字")
    public ResponseMsg<String> getCustomValue(@ApiParam(value = "得到名字", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        String colGeneMethodRule = (String) map.get("colGeneMethodRule");
        String customPath = (String) map.get("customPath");
        String customValue = null;
        try {
            customValue = commTableManagerService.getCustomValue(colGeneMethodRule, customPath);
            responseMsg.setResponseBody(customValue);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }


    /**
     * 构造json串
     * @param map
     * @return
     */
    @PostMapping("/getColNmaeByColTypeIncidentally")
    @ApiOperation(value = "构造json串")
    public ResponseMsg<String> getColNmaeByColTypeIncidentally(@ApiParam(value = "构造json串", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        String colNmaeByColTypeIncidentally = null;
        try {
            String tableId = (String) map.get("tableId");
            String colType = (String) map.get("colType");
            String columnId = (String) map.get("columnId");
            String orgId = (String) map.get("orgId");
            String sysId = (String) map.get("sysId");
            String nodeId = (String) map.get("nodeId");
            String deptId = (String) map.get("deptId");
            colNmaeByColTypeIncidentally = commTableManagerService.getColNmaeByColTypeIncidentally(tableId, colType, columnId, orgId, deptId, sysId, nodeId);
            responseMsg.setResponseBody(colNmaeByColTypeIncidentally);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 如果是【代码维护】页面，那么给【生成方式】字段复制
     * @param map
     */
    @PostMapping("/syntabNodeRecordData")
    @ApiOperation(value = "如果是【代码维护】页面，那么给【生成方式】字段复制")
    public ResponseMsg syntabNodeRecordData(@ApiParam(value = "如果是【代码维护】页面，那么给【生成方式】字段复制", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            CbbTabColumns[] ccArray = (CbbTabColumns[]) map.get("ccArray");
            String sysId = (String) map.get("sysId");
            String nodeId = (String) map.get("nodeId");
            String nodeName = (String) map.get("nodeName");
            String orgId = (String) map.get("orgId");
            String tableName = (String) (String) map.get("tableName");
            String deptId = (String) map.get("deptId");
            commTableManagerService.syntabNodeRecordData(ccArray, sysId, nodeId, nodeName, tableName, orgId, deptId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 获取排序主表信息
     * @param map
     * @return
     */
    @PostMapping("/getPageTabSortList")
    @ApiOperation(value = "获取排序主表信息")
    public ResponseMsg<Page<Map<String,Object>>> getPageTabSortList(@ApiParam(value = "获取排序主表信息", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Page<Map<String,Object>>> responseMsg = new ResponseMsg<Page<Map<String, Object>>>();
        Page<Map<String, Object>> pageTabSortList = null;
        try {
            Paging<CbbTabColumns> page = (Paging<CbbTabColumns>) map.get("page");
            Map<String, Object> parameter = (Map<String, Object>) map.get("parameter");
            pageTabSortList = commTableManagerService.getPageTabSortList(page, parameter);
            responseMsg.setResponseBody(pageTabSortList);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;

    }


    /**
     * 获取排序子表信息
     * @param map
     * @return
     */
    @PostMapping("/getCbbTabColSortData")
    @ApiOperation(value = "获取排序子表信息")
    public ResponseMsg<Page<Map<String,Object>>> getCbbTabColSortData(@ApiParam(value = "获取排序子表信息", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Page<Map<String,Object>>> responseMsg = new ResponseMsg<Page<Map<String, Object>>>();
        Page<Map<String, Object>> cbbTabColSortData = null;
        try {
            Paging<CbbTabColumns> page = (Paging<CbbTabColumns>) map.get("page");
            Map<String, Object> parameter = (Map<String, Object>) map.get("parameter");
            cbbTabColSortData = commTableManagerService.getCbbTabColSortData(page, parameter);
            responseMsg.setResponseBody(cbbTabColSortData);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;

    }


    /**
     * 删除排序字段
     * @param id
     */
    @PostMapping("/deleteCbbTabSort")
    @ApiOperation(value = "删除排序字段")
    public ResponseMsg deleteCbbTabSort(@ApiParam(value = "删除排序字段", name = "id") @RequestBody String id) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            commTableManagerService.deleteCbbTabSort(id);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 调用新增方法
     * @param cbbTabColSort
     */
    @PostMapping("/insertCbbTabColSorte")
    @ApiOperation(value = "调用新增方法")
    public ResponseMsg insertCbbTabColSorte(@ApiParam(value = "调用新增方法", name = "cbbTabColSort") @RequestBody CbbTabColSort cbbTabColSort) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            commTableManagerService.insertCbbTabColSorte(cbbTabColSort);// 调用新增方法
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 调用更新方法
     * @param cbbTabColSort
     */
    @PostMapping("/updateCbbTabColSort")
    @ApiOperation(value = "调用更新方法")
    public ResponseMsg updateCbbTabColSort(@ApiParam(value = "调用更新方法", name = "cbbTabColSort") @RequestBody CbbTabColSort cbbTabColSort) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            commTableManagerService.updateCbbTabColSort(cbbTabColSort);// 调用更新方法
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 获取分类检索主表信息
     * @param map
     * @return
     */
    @PostMapping("/getPageTabSearchList")
    @ApiOperation(value = "获取分类检索主表信息")
    public ResponseMsg<Page<Map<String,Object>>> getPageTabSearchList(@ApiParam(value = "获取分类检索主表信息", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Page<Map<String,Object>>> responseMsg = new ResponseMsg<Page<Map<String, Object>>>();
        Page<Map<String, Object>> pageTabSearchList = null;
        try {
            Paging<CbbTabColumns> page = (Paging<CbbTabColumns>) map.get("page");
            Map<String,Object> parameter = (Map<String, Object>) map.get("parameter");
            pageTabSearchList = commTableManagerService.getPageTabSearchList(page, parameter);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        responseMsg.setResponseBody(pageTabSearchList);
        return responseMsg;
    }


    /**
     * 获取分类检索子表信息
     * @param map
     * @return
     */
    @PostMapping("/getCbbTabColSearchData")
    @ApiOperation(value = "获取分类检索子表信息")
    public ResponseMsg<Page<Map<String,Object>>> getCbbTabColSearchData(@ApiParam(value = "获取分类检索子表信息", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Page<Map<String,Object>>> responseMsg = new ResponseMsg<Page<Map<String, Object>>>();
        Page<Map<String, Object>> cbbTabColSearchData = null;
        try {
            Paging<CbbTabColumns> page = (Paging<CbbTabColumns>) map.get("page");
            Map<String,Object> parameter = (Map<String, Object>) map.get("parameter");
            cbbTabColSearchData = commTableManagerService.getCbbTabColSearchData(page, parameter);
            responseMsg.setResponseBody(cbbTabColSearchData);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 删除分类检索字段
     * @param id
     */
    @PostMapping("/getCbbTabColSearchData")
    @ApiOperation(value = "删除分类检索字段")
    public ResponseMsg getCbbTabColSearchData(@ApiParam(value = "删除分类检索字段", name = "id") @RequestBody String id) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            commTableManagerService.deleteCbbTabSearch(id);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 调用新增方法
     * @param cbbTabColSearch
     */
    @PostMapping("/insertCbbTabColSearch")
    @ApiOperation(value = "调用新增方法")
    public ResponseMsg insertCbbTabColSearch(@ApiParam(value = "调用新增方法", name = "cbbTabColSearch") @RequestBody CbbTabColSearch cbbTabColSearch) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            commTableManagerService.insertCbbTabColSearch(cbbTabColSearch);// 调用新增方法
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 通过id得到
     * @param id
     * @return
     */
    @PostMapping("/getCbbTabColSearchById")
    @ApiOperation(value = "通过id得到")
    public ResponseMsg<CbbTabColSearch> getCbbTabColSearchById(@ApiParam(value = "通过id得到", name = "id") @RequestBody String id) {
        ResponseMsg<CbbTabColSearch> responseMsg = new ResponseMsg<>();
        try {
            CbbTabColSearch cbbTabColSearchById = commTableManagerService.getCbbTabColSearchById(id);
            responseMsg.setResponseBody(cbbTabColSearchById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 修改
     * @param cbbTabColSearch
     */
    @PostMapping("/updateCbbTabColSearch")
    @ApiOperation(value = "修改")
    public ResponseMsg updateCbbTabColSearch(@ApiParam(value = "修改", name = "cbbTabColSearch") @RequestBody CbbTabColSearch cbbTabColSearch) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            commTableManagerService.updateCbbTabColSearch(cbbTabColSearch);// 调用更新方法
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 根据表ID获取设置为可见的字段集合
     * @param tableId
     * @return
     */
    @PostMapping("/getCbbTabColsByTableId")
    @ApiOperation(value = "根据表ID获取设置为可见的字段集合")
    public ResponseMsg<List<Object[]>> getCbbTabColsByTableId(@ApiParam(value = "根据表ID获取设置为可见的字段集合", name = "tableId") @RequestBody String tableId) {
        ResponseMsg<List<Object[]>> responseMsg = new ResponseMsg<>();
        List<Object[]> cbbTabColsByTableId = null;
        try {
            cbbTabColsByTableId = commTableManagerService.getCbbTabColsByTableId(tableId);
            responseMsg.setResponseBody(cbbTabColsByTableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }

        return responseMsg;
    }


    /**
     * 获取索引主界面表格数据
     * @param map
     * @return
     */
    @PostMapping("/getIndexPageDetailList")
    @ApiOperation(value = "获取索引主界面表格数据")
    public ResponseMsg<Map<String, Object>> getIndexPageDetailList(@ApiParam(value = "获取索引主界面表格数据", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
        Map<String, Object> indexPageDetailList = null;
        try {
            Paging<CbbTabColumns> page = (Paging<CbbTabColumns>) map.get("page");
            Map<String, Object> parameter = (Map<String, Object>) map.get("parameter");
            String sysId = (String) map.get("sysId");
            indexPageDetailList = commTableManagerService.getIndexPageDetailList(page, parameter, sysId);
            responseMsg.setResponseBody(indexPageDetailList);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 判断该索引名是否重复
     * @param map
     * @return
     */
    @PostMapping("/checkIndexNameIsUnique")
    @ApiOperation(value = "判断该索引名是否重复")
    public ResponseMsg<Boolean> checkIndexNameIsUnique(@ApiParam(value = "判断该索引名是否重复", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        boolean b = false;
        try {
            String indexName = (String) map.get("indexName");
            String insertData = (String) map.get("insertData");
            b = commTableManagerService.checkIndexNameIsUnique(indexName, insertData);
            responseMsg.setResponseBody(b);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 删除索引
     * @param map
     */
    @PostMapping("/deleteCbbTabIndexDataById")
    @ApiOperation(value = "删除索引")
    public ResponseMsg deleteCbbTabIndexDataById(@ApiParam(value = "删除索引", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            String deleteData = (String) map.get("deleteData");
            String sysId = (String) map.get("sysId");
            String nodeId = (String) map.get("nodeId");
            String nodeName = (String) map.get("nodeName");
            String tableName = (String) map.get("tableName");
            String orgId = (String) map.get("orgId");
            String deptId = (String) map.get("deptId");
            commTableManagerService.deleteCbbTabIndexDataById(deleteData, sysId, nodeId, nodeName, tableName, orgId, deptId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 解析2003excel文件
     * @param filePath
     * @return
     */
    @PostMapping("/readXls")
    @ApiOperation(value = "解析2003excel文件")
    public ResponseMsg<Map<String, Vector<Vector<String>>>> readXls(@ApiParam(value = "解析2003excel文件", name = "filePath") @RequestBody String filePath) {
        ResponseMsg<Map<String, Vector<Vector<String>>>> responseMsg = new ResponseMsg<>();
        Map<String, Vector<Vector<String>>> stringVectorMap = null;
        try {
            stringVectorMap = commTableManagerService.readXls(filePath);
            responseMsg.setResponseBody(stringVectorMap);
            responseMsg.setRetCode("200");
        } catch (IOException e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 解析2007excel文件
     * @param filePath
     * @return
     */
    @PostMapping("/readXlsx")
    @ApiOperation(value = "解析2007excel文件")
    public ResponseMsg<Map<String, Vector<Vector<String>>>> readXlsx(@ApiParam(value = "解析2007excel文件", name = "filePath") @RequestBody String filePath) {
        ResponseMsg<Map<String, Vector<Vector<String>>>> responseMsg = new ResponseMsg<>();
        Map<String, Vector<Vector<String>>> stringVectorMap = null;
        try {
            stringVectorMap = commTableManagerService.readXlsx(filePath);
            responseMsg.setResponseBody(stringVectorMap);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("200");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 调用方法验证数据
     * @param map
     */
    @PostMapping("/testExcel")
    @ApiOperation(value = "调用方法验证数据")
    public ResponseMsg testExcel(@ApiParam(value = "调用方法验证数据", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            Vector<Vector<String>> datas = (Vector<Vector<String>>) map.get("datas");
            String tableId = (String) map.get("tableId");
            commTableManagerService.testExcel(datas, tableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 系统通用代码导入方法
     * @param map
     */
    @PostMapping("/insertSysCode")
    @ApiOperation(value = "调用方法验证数据")
    public ResponseMsg insertSysCode(@ApiParam(value = "调用方法验证数据", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg responseMsg = new ResponseMsg();
        try {
            String cid = (String) map.get("cid");
            String tid = (String) map.get("tid");
            String fid = (String) map.get("fid");
            String sysId = (String) map.get("sysId");
            String orgId = (String) map.get("orgId");
            String deptId = (String) map.get("deptId");
            commTableManagerService.insertSysCode(cid, tid, fid, sysId, orgId, deptId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc("201");
            e.printStackTrace();
        }
        return responseMsg;
    }

    /**
     * 查找可组合字段构造下拉列表数据
     * @param map
     * @return
     */
    @PostMapping("/getColNameByColTypeForTJSC")
    @ApiOperation(value = "查找可组合字段构造下拉列表数据")
    public ResponseMsg<String> getColNameByColTypeForTJSC(@ApiParam(value = "查找可组合字段构造下拉列表数据", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        String colNameByColTypeForTJSC = null;
        try {
            String tableId = (String) map.get("tableId");
            String colType = (String) map.get("colType");
            String id = (String) map.get("id");
            String orgId = (String) map.get("orgId");
            String deptId = (String) map.get("deptId");
            String sysId = (String) map.get("sysId");
            String nodeId = (String) map.get("nodeId");
            colNameByColTypeForTJSC = commTableManagerService.getColNameByColTypeForTJSC(tableId, colType, id, orgId, deptId, sysId, nodeId);
            responseMsg.setResponseBody(colNameByColTypeForTJSC);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("200");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }


    /**
     * 根据代码维护信息ID获取该对象
     * @param id
     * @return
     */
    @PostMapping("/getCbbTabColCodeById")
    @ApiOperation(value = "根据代码维护信息ID获取该对象")
    public ResponseMsg<CbbTabColCode> getCbbTabColCodeById(@ApiParam(value = "查找可组合字段构造下拉列表数据", name = "id") @RequestBody String id) {
        ResponseMsg<CbbTabColCode> responseMsg = new ResponseMsg<>();
        try {
            CbbTabColCode cbbTabColCodeById = commTableManagerService.getCbbTabColCodeById(id);
            responseMsg.setResponseBody(cbbTabColCodeById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;
    }




/**
 *构造文件名
 * @param resMapsRb
 * @return
 */
    @PostMapping("/getFileName/v1")
    @ApiOperation(value = "构造文件名")
    public ResponseMsg<String> getFileName(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String tableId = (String) resMapsRb.get("tableId");
            String getFileName = commTableManagerService.getFileName(tableId);
            responseMsg.setResponseBody(getFileName);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *获取基本列信息(节点著录定义)
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getPageNodeRecordColList/v1")
    @ApiOperation(value = "获取基本列信息(节点著录定义)")
    public ResponseMsg<Page<Map<String, Object>>> getPageNodeRecordColList(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Page<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            Paging<CbbTabColumns> page = (Paging<CbbTabColumns>) resMapsRb.get("page");
            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
            Page<Map<String, Object>> getPageNodeRecordColList = commTableManagerService.getPageNodeRecordColList(page,parameter);
            responseMsg.setResponseBody(getPageNodeRecordColList);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据列信息ID获取该对象
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTabColumnsById/v1")
    @ApiOperation(value = "根据列信息ID获取该对象")
    public ResponseMsg<CbbTabColumns> getCbbTabColumnsById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<CbbTabColumns> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            CbbTabColumns getCbbTabColumnsById = commTableManagerService.getCbbTabColumnsById(id);
            responseMsg.setResponseBody(getCbbTabColumnsById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getPageDetailList/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<Map<String, Object>> getPageDetailList(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
//        try {
//            avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page = (avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns>) resMapsRb.get("page");
//            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
//            String sysId = (String) resMapsRb.get("sysId");
//            Map<String, Object> getPageDetailList = commTableManagerService.getPageDetailList(page,parameter,sysId);
//            responseMsg.setResponseBody(getPageDetailList);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/deleteCommCbbTabColumnsById/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg deleteCommCbbTabColumnsById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[] cbbTabColumnsArray = (avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[]) resMapsRb.get("cbbTabColumnsArray");
//            String sysId = (String) resMapsRb.get("sysId");
//            String nodeId = (String) resMapsRb.get("nodeId");
//            String nodeName = (String) resMapsRb.get("nodeName");
//            String tableName = (String) resMapsRb.get("tableName");
//            String isTrueTable = (String) resMapsRb.get("isTrueTable");
//            String orgId = (String) resMapsRb.get("orgId");
//            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
//            commTableManagerService.deleteCommCbbTabColumnsById(cbbTabColumnsArray,sysId,nodeId,nodeName,tableName,isTrueTable,orgId,param);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *新增列各种信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/insertCbbTabColumns/v1")
    @ApiOperation(value = "新增列各种信息")
    public ResponseMsg insertCbbTabColumns(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            CbbTabColumns[] cbbTabColumnsArray = (CbbTabColumns[]) resMapsRb.get("cbbTabColumnsArray");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String nodeName = (String) resMapsRb.get("nodeName");
            String tableName = (String) resMapsRb.get("tableName");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            String isTrueTable = (String) resMapsRb.get("isTrueTable");
            commTableManagerService.insertCbbTabColumns(cbbTabColumnsArray,sysId,nodeId,nodeName,tableName,orgId,deptId,loginUserId,loginIp,isTrueTable);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/updateCbbTabColumns/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg updateCbbTabColumns(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[] cbbTabColumnsArray = (avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[]) resMapsRb.get("cbbTabColumnsArray");
//            String sysId = (String) resMapsRb.get("sysId");
//            String nodeId = (String) resMapsRb.get("nodeId");
//            String nodeName = (String) resMapsRb.get("nodeName");
//            String tableName = (String) resMapsRb.get("tableName");
//            Boolean isTrue = (Boolean) resMapsRb.get("isTrue");
//            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
//            commTableManagerService.updateCbbTabColumns(cbbTabColumnsArray,sysId,nodeId,nodeName,tableName,isTrue,param);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getPageCodeDetailList/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>> getPageCodeDetailList(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>> responseMsg = new ResponseMsg<>();
//        try {
//            avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtempletmanager.domain.CbbTempletCode> page = (avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtempletmanager.domain.CbbTempletCode>) resMapsRb.get("page");
//            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
//            com.github.pagehelper.Page<Map<String, Object>> getPageCodeDetailList = commTableManagerService.getPageCodeDetailList(page,parameter);
//            responseMsg.setResponseBody(getPageCodeDetailList);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *删除代码维护信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/deleteCbbTabColCodeById/v1")
    @ApiOperation(value = "")
    public ResponseMsg deleteCbbTabColCodeById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            CbbTabColCode cbbTabColCode = (CbbTabColCode) resMapsRb.get("cbbTabColCode");
            commTableManagerService.deleteCbbTabColCodeById(cbbTabColCode);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/updateCbbTabColumnsTemp/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg updateCbbTabColumnsTemp(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[] cbbTabColumnsArray = (avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[]) resMapsRb.get("cbbTabColumnsArray");
//            String sysId = (String) resMapsRb.get("sysId");
//            String nodeId = (String) resMapsRb.get("nodeId");
//            String nodeName = (String) resMapsRb.get("nodeName");
//            commTableManagerService.updateCbbTabColumnsTemp(cbbTabColumnsArray,sysId,nodeId,nodeName);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *递归获取Tree当前节点下数据
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getTableTreeNodes/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<TreeNode>> getTableTreeNodes(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<TreeNode>> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            String sysId = (String) resMapsRb.get("sysId");
            String orgId = (String) resMapsRb.get("orgId");
            List<TreeNode> getTableTreeNodes = commTableManagerService.getTableTreeNodes(id,sysId,orgId);
            responseMsg.setResponseBody(getTableTreeNodes);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据代码维护信息ID获取该对象
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTabColCodeById/v1")
    @ApiOperation(value = "")
    public ResponseMsg<CbbTabColCode> getCbbTabColCodeById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<CbbTabColCode> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            CbbTabColCode getCbbTabColCodeById = commTableManagerService.getCbbTabColCodeById(id);
            responseMsg.setResponseBody(getCbbTabColCodeById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *删除系统通用代码信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/deleteCbbSysCodeRecord/v1")
    @ApiOperation(value = "")
    public ResponseMsg deleteCbbSysCodeRecord(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String colId = (String) resMapsRb.get("colId");
            commTableManagerService.deleteCbbSysCodeRecord(colId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *复制参考模板字段信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/copyCommTempletField/v1")
    @ApiOperation(value = "")
    public ResponseMsg copyCommTempletField(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String ids = (String) resMapsRb.get("ids");
            String sysId = (String) resMapsRb.get("sysId");
            String tableName = (String) resMapsRb.get("tableName");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            commTableManagerService.copyCommTempletField(ids,sysId,tableName,orgId,deptId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/insertTabColCodeByJson/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg insertTabColCodeByJson(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            String insertData = (String) resMapsRb.get("insertData");
//            String tableId = (String) resMapsRb.get("tableId");
//            String sysId = (String) resMapsRb.get("sysId");
//            commTableManagerService.insertTabColCodeByJson(insertData,tableId,sysId);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/updateCbbTabColCode/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg updateCbbTabColCode(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            List<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColCode> cbbTabColCodeArray = (List<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColCode>) resMapsRb.get("cbbTabColCodeArray");
//            String sysId = (String) resMapsRb.get("sysId");
//            String nodeId = (String) resMapsRb.get("nodeId");
//            String nodeName = (String) resMapsRb.get("nodeName");
//            commTableManagerService.updateCbbTabColCode(cbbTabColCodeArray,sysId,nodeId,nodeName);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getTableIdBysysIdAndTableName/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<String> getTableIdBysysIdAndTableName(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<String> responseMsg = new ResponseMsg<>();
//        try {
//            String sysId = (String) resMapsRb.get("sysId");
//            String tableName = (String) resMapsRb.get("tableName");
//            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
//            String getTableIdBysysIdAndTableName = commTableManagerService.getTableIdBysysIdAndTableName(sysId,tableName,param);
//            responseMsg.setResponseBody(getTableIdBysysIdAndTableName);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *获取节点著录定义列表信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getPageNodeRecordList/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Page<Map<String, Object>>> getPageNodeRecordList(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Page<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            Paging<CbbTabColumns> page = (Paging<CbbTabColumns>) resMapsRb.get("page");
            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
            Page<Map<String, Object>> getPageNodeRecordList = commTableManagerService.getPageNodeRecordList(page,parameter);
            responseMsg.setResponseBody(getPageNodeRecordList);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *更新节点著录信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/updateCbbTabRecord/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateCbbTabRecord(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            List<CbbTabColumns> list = (List<CbbTabColumns>) resMapsRb.get("list");
            String sysId = (String) resMapsRb.get("sysId");
            String tabNodeId = (String) resMapsRb.get("tabNodeId");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String tableId = (String) resMapsRb.get("tableId");
            commTableManagerService.updateCbbTabRecord(list,sysId,tabNodeId,orgId,deptId,tableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/createMenu/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg createMenu(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            String path = (String) resMapsRb.get("path");
//            String sysId = (String) resMapsRb.get("sysId");
//            String tableName = (String) resMapsRb.get("tableName");
//            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
//            commTableManagerService.createMenu(path,sysId,tableName,param);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *验证此真实值是否存在
     * @param resMapsRb
     * @return
     */
    @PostMapping("/checkCode/v1")
    @ApiOperation(value = "验证此真实值是否存在")
    public ResponseMsg<Boolean> checkCode(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        try {
            String columnId = (String) resMapsRb.get("columnId");
            String lookupCode = (String) resMapsRb.get("lookupCode");
            String id = (String) resMapsRb.get("id");
            Boolean checkCode = commTableManagerService.checkCode(columnId,lookupCode,id);
            responseMsg.setResponseBody(checkCode);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *删除排序字段
     * @param resMapsRb
     * @return
     */
    @PostMapping("/deleteCbbTabSort/v1")
    @ApiOperation(value = "删除排序字段")
    public ResponseMsg deleteCbbTabSort(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            commTableManagerService.deleteCbbTabSort(id);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据表信息ID获取表信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTablesById/v1")
    @ApiOperation(value = "根据表信息ID获取表信息")
    public ResponseMsg<CbbTables> getCbbTablesById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<CbbTables> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            CbbTables getCbbTablesById = commTableManagerService.getCbbTablesById(id);
            responseMsg.setResponseBody(getCbbTablesById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *解析2003excel文件
     * @param resMapsRb
     * @return
     */
    @PostMapping("/readXls/v1")
    @ApiOperation(value = "解析2003excel文件")
    public ResponseMsg<Map<String, Vector<Vector<String>>>> readXls(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Map<String, Vector<Vector<String>>>> responseMsg = new ResponseMsg<>();
        try {
            String fileName = (String) resMapsRb.get("fileName");
            Map<String, Vector<Vector<String>>> readXls = commTableManagerService.readXls(fileName);
            responseMsg.setResponseBody(readXls);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *创建表与节点关联关系 参数：系统标识ID，节点ID，库表ID
     * @param resMapsRb
     * @return
     */
    @PostMapping("/createCbbTabNode/v1")
    @ApiOperation(value = "创建表与节点关联关系 参数：系统标识ID，节点ID，库表ID")
    public ResponseMsg createCbbTabNode(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            commTableManagerService.createCbbTabNode(sysId,nodeId,tableId,orgId,deptId,loginUserId,loginIp);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *验证必著
     * @param resMapsRb
     * @return
     */
    @PostMapping("/checkColIsMust/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Boolean> checkColIsMust(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        try {
            String tableId = (String) resMapsRb.get("tableId");
            Boolean checkColIsMust = commTableManagerService.checkColIsMust(tableId);
            responseMsg.setResponseBody(checkColIsMust);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *cbbTabColumns该tid下的列最大排序值
     * @param resMapsRb
     * @return
     */
    @PostMapping("/selectMaxOrder/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Integer> selectMaxOrder(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Integer> responseMsg = new ResponseMsg<>();
        try {
            String tid = (String) resMapsRb.get("tid");
            Integer selectMaxOrder = commTableManagerService.selectMaxOrder(tid);
            responseMsg.setResponseBody(selectMaxOrder);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *代码维护模块检测excel数据合法性
     * @param resMapsRb
     * @return
     */
    @PostMapping("/testColCodeExcel/v1")
    @ApiOperation(value = "")
    public ResponseMsg testColCodeExcel(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            Vector<Vector<String>> datas = (Vector<Vector<String>>) resMapsRb.get("datas");
            String columnId = (String) resMapsRb.get("columnId");
            commTableManagerService.testColCodeExcel(datas,columnId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据sysId和nodeId查询tableId
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getTableIdBysnId/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getTableIdBysnId(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String getTableIdBysnId = commTableManagerService.getTableIdBysnId(sysId,nodeId);
            responseMsg.setResponseBody(getTableIdBysnId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getCbbTableId/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<String> getCbbTableId(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<String> responseMsg = new ResponseMsg<>();
//        try {
//            String sysId = (String) resMapsRb.get("sysId");
//            String tableName = (String) resMapsRb.get("tableName");
//            String getCbbTableId = commTableManagerService.getCbbTableId(sysId,tableName);
//            responseMsg.setResponseBody(getCbbTableId);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *导出结构数据
     * @param resMapsRb
     * @return
     */
    @PostMapping("/exportData/v1")
    @ApiOperation(value = "")
    public ResponseMsg exportData(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            List<String> headValue = (List<String>) resMapsRb.get("headValue");
            List<String> head = (List<String>) resMapsRb.get("head");
            List<Map<String, Object>> data = (List<Map<String, Object>>) resMapsRb.get("data");
            ByteArrayOutputStream out = (ByteArrayOutputStream) resMapsRb.get("out");
            commTableManagerService.exportData(headValue,head,data,out);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *解析2007excel文件
     * @param resMapsRb
     * @return
     */
    @PostMapping("/readXlsx/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Map<String, Vector<Vector<String>>>> readXlsx(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Map<String, Vector<Vector<String>>>> responseMsg = new ResponseMsg<>();
        try {
            String fileName = (String) resMapsRb.get("fileName");
            Map<String, Vector<Vector<String>>> readXlsx = commTableManagerService.readXlsx(fileName);
            responseMsg.setResponseBody(readXlsx);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/testExcel/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg testExcel(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            Vector<Vector<String>> datas = (Vector<Vector<String>>) resMapsRb.get("datas");
//            String tableId = (String) resMapsRb.get("tableId");
//            commTableManagerService.testExcel(datas,tableId);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *新增或更新列信息后，重新更新列排序号（1.2.3.4....）
     * @param resMapsRb
     * @return
     */
    @PostMapping("/updateColOrder/v1")
    @ApiOperation(value = "新增或更新列信息后，重新更新列排序号（1.2.3.4....）")
    public ResponseMsg updateColOrder(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String tableId = (String) resMapsRb.get("tableId");
            commTableManagerService.updateColOrder(tableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *生成动态表
     * @param resMapsRb
     * @return
     */
    @PostMapping("/insertdbTable/v1")
    @ApiOperation(value = "")
    public ResponseMsg insertdbTable(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String tableId = (String) resMapsRb.get("tableId");
            String sysId = (String) resMapsRb.get("sysId");
            String orgId = (String) resMapsRb.get("orgId");
            commTableManagerService.insertdbTable(tableId,sysId,orgId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/insertSysCode/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg insertSysCode(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            String cid = (String) resMapsRb.get("cid");
//            String tid = (String) resMapsRb.get("tid");
//            String fid = (String) resMapsRb.get("fid");
//            String sysId = (String) resMapsRb.get("sysId");
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            commTableManagerService.insertSysCode(cid,tid,fid,sysId,orgId,deptId);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *获取关系ID 参数：系统标识ID，节点ID，库表ID
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTabNodeId/v1")
    @ApiOperation(value = "获取关系ID 参数：系统标识ID，节点ID，库表ID")
    public ResponseMsg<String> getCbbTabNodeId(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            String getCbbTabNodeId = commTableManagerService.getCbbTabNodeId(sysId,nodeId,tableId);
            responseMsg.setResponseBody(getCbbTabNodeId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *新增代码维护信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/insertTabColCode/v1")
    @ApiOperation(value = "")
    public ResponseMsg insertTabColCode(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            CbbTabColCode cbbTabColCode = (CbbTabColCode) resMapsRb.get("cbbTabColCode");
            commTableManagerService.insertTabColCode(cbbTabColCode);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *验证菜单路径是否存在
     * @param resMapsRb
     * @return
     */
    @PostMapping("/checkMenuPath/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Boolean> checkMenuPath(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        try {
            String path = (String) resMapsRb.get("path");
            Boolean checkMenuPath = commTableManagerService.checkMenuPath(path);
            responseMsg.setResponseBody(checkMenuPath);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *将excel文件中的数据添加到数据库表中
     * @param resMapsRb
     * @return
     */
    @PostMapping("/insertFromExcel/v1")
    @ApiOperation(value = "")
    public ResponseMsg insertFromExcel(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            Vector<Vector<String>> datas = (Vector<Vector<String>>) resMapsRb.get("datas");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String nodeName = (String) resMapsRb.get("nodeName");
            String tableName = (String) resMapsRb.get("tableName");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            String isTrueTable = (String) resMapsRb.get("isTrueTable");
            commTableManagerService.insertFromExcel(datas,sysId,nodeId,nodeName,tableName,orgId,deptId,loginUserId,loginIp,isTrueTable);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *验证是否节点著录表存在数据
     * @param resMapsRb
     * @return
     */
    @PostMapping("/checkNodeRecord/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Boolean> checkNodeRecord(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        try {
            String tabNodeId = (String) resMapsRb.get("tabNodeId");
            String tableId = (String) resMapsRb.get("tableId");
            Boolean checkNodeRecord = commTableManagerService.checkNodeRecord(tabNodeId,tableId);
            responseMsg.setResponseBody(checkNodeRecord);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *验证字段是否重名
     * @param resMapsRb
     * @return
     */
    @PostMapping("/checkField/v1")
    @ApiOperation(value = "验证字段是否重名")
    public ResponseMsg<Boolean> checkField(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            String sysId = (String) resMapsRb.get("sysId");
            String tableName = (String) resMapsRb.get("tableName");
            Boolean checkField = commTableManagerService.checkField(id,sysId,tableName);
            responseMsg.setResponseBody(checkField);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *删除配置信息（组合项或统计生成）
     * @param resMapsRb
     * @return
     */
    @PostMapping("/deleteConfig/v1")
    @ApiOperation(value = "删除配置信息（组合项或统计生成）")
    public ResponseMsg deleteConfig(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String sourColumnId = (String) resMapsRb.get("sourColumnId");
            commTableManagerService.deleteConfig(sourColumnId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getCustomValue/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<String> getCustomValue(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<String> responseMsg = new ResponseMsg<>();
//        try {
//            String value = (String) resMapsRb.get("value");
//            String path = (String) resMapsRb.get("path");
//            String getCustomValue = commTableManagerService.getCustomValue(value,path);
//            responseMsg.setResponseBody(getCustomValue);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/saveConfigTJSC/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg saveConfigTJSC(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            String sourceColumnId = (String) resMapsRb.get("sourceColumnId");
//            String[] configColumns = (String[]) resMapsRb.get("configColumns");
//            String[] configInput = (String[]) resMapsRb.get("configInput");
//            String tableId = (String) resMapsRb.get("tableId");
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            String sysId = (String) resMapsRb.get("sysId");
//            String[] orders = (String[]) resMapsRb.get("orders");
//            String operation = (String) resMapsRb.get("operation");
//            commTableManagerService.saveConfigTJSC(sourceColumnId,configColumns,configInput,tableId,orgId,deptId,sysId,orders,operation);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *统计生成编辑页面初始化获取配置信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getTjscConfig/v1")
    @ApiOperation(value = "统计生成编辑页面初始化获取配置信息")
    public ResponseMsg<Map<String, Object>> getTjscConfig(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
        try {
            String sourceId = (String) resMapsRb.get("sourceId");
            Map<String, Object> getTjscConfig = commTableManagerService.getTjscConfig(sourceId);
            responseMsg.setResponseBody(getTjscConfig);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *初始化获取组合项配置信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getGroupConfig/v1")
    @ApiOperation(value = "初始化获取组合项配置信息")
    public ResponseMsg<Map<String, Object>> getGroupConfig(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
        try {
            String sourceId = (String) resMapsRb.get("sourceId");
            Map<String, Object> getGroupConfig = commTableManagerService.getGroupConfig(sourceId);
            responseMsg.setResponseBody(getGroupConfig);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据userId查找userName
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getUserNameById/v1")
    @ApiOperation(value = "根据userId查找userName")
    public ResponseMsg<String> getUserNameById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            String getUserNameById = commTableManagerService.getUserNameById(id);
            responseMsg.setResponseBody(getUserNameById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/checkTabIsAJJ/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<Boolean> checkTabIsAJJ(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
//        try {
//            String tableId = (String) resMapsRb.get("tableId");
//            String nodeId = (String) resMapsRb.get("nodeId");
//            Boolean checkTabIsAJJ = commTableManagerService.checkTabIsAJJ(tableId,nodeId);
//            responseMsg.setResponseBody(checkTabIsAJJ);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *根据sysCode查找sysName
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getSysNameByCode/v1")
    @ApiOperation(value = "根据sysCode查找sysName")
    public ResponseMsg<String> getSysNameByCode(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String code = (String) resMapsRb.get("code");
            String getSysNameByCode = commTableManagerService.getSysNameByCode(code);
            responseMsg.setResponseBody(getSysNameByCode);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *保存组合项配置信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/saveConfigGroup/v1")
    @ApiOperation(value = "保存组合项配置信息")
    public ResponseMsg saveConfigGroup(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String sourceColumnId = (String) resMapsRb.get("sourceColumnId");
            String[] configColumns = (String[]) resMapsRb.get("configColumns");
            String[] configInput = (String[]) resMapsRb.get("configInput");
            String tableId = (String) resMapsRb.get("tableId");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String[] orders = (String[]) resMapsRb.get("orders");
            commTableManagerService.saveConfigGroup(sourceColumnId,configColumns,configInput,tableId,orgId,deptId,sysId,orders);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据deptId查找deptName
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getDeptNameById/v1")
    @ApiOperation(value = "根据deptId查找deptName")
    public ResponseMsg<String> getDeptNameById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            String getDeptNameById = commTableManagerService.getDeptNameById(id);
            responseMsg.setResponseBody(getDeptNameById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *获取可配置的分类检索字段
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getSearchCol/v1")
    @ApiOperation(value = "获取可配置的分类检索字段")
    public ResponseMsg<String> getSearchCol(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String sysId = (String) resMapsRb.get("sysId");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String userId = (String) resMapsRb.get("userId");
            String getSearchCol = commTableManagerService.getSearchCol(sysId,orgId,deptId,userId);
            responseMsg.setResponseBody(getSearchCol);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *获取表层级结构类型（0:案卷，1:盒）
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getTabLayerType/v1")
    @ApiOperation(value = "获取表层级结构类型（0:案卷，1:盒）")
    public ResponseMsg<String> getTabLayerType(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String nodeId = (String) resMapsRb.get("nodeId");
            String getTabLayerType = commTableManagerService.getTabLayerType(nodeId);
            responseMsg.setResponseBody(getTabLayerType);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/deleteCbbTabIndexDataById/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg deleteCbbTabIndexDataById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            String deleteData = (String) resMapsRb.get("deleteData");
//            String sysId = (String) resMapsRb.get("sysId");
//            String nodeId = (String) resMapsRb.get("nodeId");
//            String nodeName = (String) resMapsRb.get("nodeName");
//            String tableName = (String) resMapsRb.get("tableName");
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            commTableManagerService.deleteCbbTabIndexDataById(deleteData,sysId,nodeId,nodeName,tableName,orgId,deptId);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *索引主页面数据新增方法
     * @param resMapsRb
     * @return
     */
    @PostMapping("/insertCbbTabIndex/v1")
    @ApiOperation(value = "索引主页面数据新增方法")
    public ResponseMsg insertCbbTabIndex(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String insertData = (String) resMapsRb.get("insertData");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String nodeName = (String) resMapsRb.get("nodeName");
            String tableName = (String) resMapsRb.get("tableName");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            commTableManagerService.insertCbbTabIndex(insertData,sysId,nodeId,nodeName,tableName,orgId,deptId,loginUserId,loginIp);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据源字段获取组合项配置信息（配置页面初始化时使用）
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getGroupConfigNew/v1")
    @ApiOperation(value = "根据源字段获取组合项配置信息（配置页面初始化时使用）")
    public ResponseMsg<String> getGroupConfigNew(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String sourceId = (String) resMapsRb.get("sourceId");
            String getGroupConfigNew = commTableManagerService.getGroupConfigNew(sourceId);
            responseMsg.setResponseBody(getGroupConfigNew);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *新增字段排序信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/insertCbbTabColSorte/v1")
    @ApiOperation(value = "新增字段排序信息")
    public ResponseMsg insertCbbTabColSorte(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            CbbTabColSort cbbTabColSort = (CbbTabColSort) resMapsRb.get("cbbTabColSort");
            commTableManagerService.insertCbbTabColSorte(cbbTabColSort);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *检测父节点是否为2级节点
     * @param resMapsRb
     * @return
     */
    @PostMapping("/checkNodeIsSecond/v1")
    @ApiOperation(value = "检测父节点是否为2级节点")
    public ResponseMsg<Boolean> checkNodeIsSecond(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        try {
            String nodeId = (String) resMapsRb.get("nodeId");
            Boolean checkNodeIsSecond = commTableManagerService.checkNodeIsSecond(nodeId);
            responseMsg.setResponseBody(checkNodeIsSecond);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据字段名获取字段ID
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getColumnIdByName/v1")
    @ApiOperation(value = "根据字段名获取字段ID")
    public ResponseMsg<String> getColumnIdByName(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String name = (String) resMapsRb.get("name");
            String tableId = (String) resMapsRb.get("tableId");
            String getColumnIdByName = commTableManagerService.getColumnIdByName(name,tableId);
            responseMsg.setResponseBody(getColumnIdByName);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据tableId、nodeId获取tabNodeId（文件类型取‘个人文件’‘部门文件’节点ID作为tabNodeId）
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTabNodeIdByTableId/v1")
    @ApiOperation(value = "根据tableId、nodeId获取tabNodeId（文件类型取‘个人文件’‘部门文件’节点ID作为tabNodeId）")
    public ResponseMsg<List<Object>> getCbbTabNodeIdByTableId(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Object>> responseMsg = new ResponseMsg<>();
        try {
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String nodeId = (String) resMapsRb.get("nodeId");
            List<Object> getCbbTabNodeIdByTableId = commTableManagerService.getCbbTabNodeIdByTableId(sysId,tableId,nodeId);
            responseMsg.setResponseBody(getCbbTabNodeIdByTableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/syntabNodeRecordData/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg syntabNodeRecordData(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[] cbbTabColumnsArray = (avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[]) resMapsRb.get("cbbTabColumnsArray");
//            String sysId = (String) resMapsRb.get("sysId");
//            String nodeId = (String) resMapsRb.get("nodeId");
//            String nodeName = (String) resMapsRb.get("nodeName");
//            String tableName = (String) resMapsRb.get("tableName");
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            commTableManagerService.syntabNodeRecordData(cbbTabColumnsArray,sysId,nodeId,nodeName,tableName,orgId,deptId);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getHiddenPageDetailList/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<Map<String, Object>> getHiddenPageDetailList(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
//        try {
//            avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page = (avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns>) resMapsRb.get("page");
//            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
//            String sysId = (String) resMapsRb.get("sysId");
//            Map<String, Object> getHiddenPageDetailList = commTableManagerService.getHiddenPageDetailList(page,parameter,sysId);
//            responseMsg.setResponseBody(getHiddenPageDetailList);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getPageTabSearchList/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>> getPageTabSearchList(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>> responseMsg = new ResponseMsg<>();
//        try {
//            avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page = (avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns>) resMapsRb.get("page");
//            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
//            com.github.pagehelper.Page<Map<String, Object>> getPageTabSearchList = commTableManagerService.getPageTabSearchList(page,parameter);
//            responseMsg.setResponseBody(getPageTabSearchList);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/exportExcelModule/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg exportExcelModule(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            List<String> headValue = (List<String>) resMapsRb.get("headValue");
//            java.io.ByteArrayOutputStream out = (java.io.ByteArrayOutputStream) resMapsRb.get("out");
//            commTableManagerService.exportExcelModule(headValue,out);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *删除分类检索
     * @param resMapsRb
     * @return
     */
    @PostMapping("/deleteCbbTabSearch/v1")
    @ApiOperation(value = "删除分类检索")
    public ResponseMsg deleteCbbTabSearch(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            commTableManagerService.deleteCbbTabSearch(id);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *还原数据
     * @param resMapsRb
     * @return
     */
    @PostMapping("/restoreCbbTabRecordData/v1")
    @ApiOperation(value = "还原数据")
    public ResponseMsg restoreCbbTabRecordData(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String tabNodeId = (String) resMapsRb.get("tabNodeId");
            String tableId = (String) resMapsRb.get("tableId");
            commTableManagerService.restoreCbbTabRecordData(tabNodeId,tableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *初始化字段同步业务表
     * @param resMapsRb
     * @return
     */
    @PostMapping("/sameCbbTabColumnsData/v1")
    @ApiOperation(value = "初始化字段同步业务表")
    public ResponseMsg sameCbbTabColumnsData(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String sysId = (String) resMapsRb.get("sysId");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            commTableManagerService.sameCbbTabColumnsData(sysId,orgId,deptId,loginUserId,loginIp);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *删除生成方式规则信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/deleteCbbTabFormSelectById/v1")
    @ApiOperation(value = "删除生成方式规则信息")
    public ResponseMsg deleteCbbTabFormSelectById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            CbbTabFormSelect cbbTabFormSelect = (CbbTabFormSelect) resMapsRb.get("cbbTabFormSelect");
            commTableManagerService.deleteCbbTabFormSelectById(cbbTabFormSelect);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/saveConfigGroupNew/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg saveConfigGroupNew(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg responseMsg = new ResponseMsg<>();
//        try {
//            String sourceColumnId = (String) resMapsRb.get("sourceColumnId");
//            String json = (String) resMapsRb.get("json");
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            String sysId = (String) resMapsRb.get("sysId");
//            commTableManagerService.saveConfigGroupNew(sourceColumnId,json,orgId,deptId,sysId);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getCbbTabColSortData/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>> getCbbTabColSortData(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>> responseMsg = new ResponseMsg<>();
//        try {
//            avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page = (avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns>) resMapsRb.get("page");
//            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
//            com.github.pagehelper.Page<Map<String, Object>> getCbbTabColSortData = commTableManagerService.getCbbTabColSortData(page,parameter);
//            responseMsg.setResponseBody(getCbbTabColSortData);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/checkIndexNameIsUnique/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<Boolean> checkIndexNameIsUnique(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
//        try {
//            String indexName = (String) resMapsRb.get("indexName");
//            String insertData = (String) resMapsRb.get("insertData");
//            Boolean checkIndexNameIsUnique = commTableManagerService.checkIndexNameIsUnique(indexName,insertData);
//            responseMsg.setResponseBody(checkIndexNameIsUnique);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getColNameByColTypeForTJSC/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<String> getColNameByColTypeForTJSC(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<String> responseMsg = new ResponseMsg<>();
//        try {
//            String tableId = (String) resMapsRb.get("tableId");
//            String colType = (String) resMapsRb.get("colType");
//            String colId = (String) resMapsRb.get("colId");
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            String sysId = (String) resMapsRb.get("sysId");
//            String nodeId = (String) resMapsRb.get("nodeId");
//            String getColNameByColTypeForTJSC = commTableManagerService.getColNameByColTypeForTJSC(tableId,colType,colId,orgId,deptId,sysId,nodeId);
//            responseMsg.setResponseBody(getColNameByColTypeForTJSC);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *根据表ID获取表中文名
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getTabTitleByTabId/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getTabTitleByTabId(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String tabId = (String) resMapsRb.get("tabId");
            String getTabTitleByTabId = commTableManagerService.getTabTitleByTabId(tabId);
            responseMsg.setResponseBody(getTabTitleByTabId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *新增系统代码维护信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/insertTabColSysCode/v1")
    @ApiOperation(value = "新增系统代码维护信息")
    public ResponseMsg insertTabColSysCode(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            CbbTabColSysCode cbbTabColSysCode = (avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColSysCode) resMapsRb.get("cbbTabColSysCode");
            commTableManagerService.insertTabColSysCode(cbbTabColSysCode);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据排序字段ID获取该对象
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTabColSortById/v1")
    @ApiOperation(value = "根据排序字段ID获取该对象")
    public ResponseMsg<CbbTabColSort> getCbbTabColSortById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<CbbTabColSort> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            CbbTabColSort getCbbTabColSortById = commTableManagerService.getCbbTabColSortById(id);
            responseMsg.setResponseBody(getCbbTabColSortById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *同步树结构和库表
     * @param resMapsRb
     * @return
     */
    @PostMapping("/doSyncArchiveClassAndTables/v1")
    @ApiOperation(value = "同步树结构和库表")
    public ResponseMsg doSyncArchiveClassAndTables(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            commTableManagerService.doSyncArchiveClassAndTables(param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *统计生成显示页面初始化获取数据
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getTjscConfigformanager/v1")
    @ApiOperation(value = "统计生成显示页面初始化获取数据")
    public ResponseMsg<List<String>> getTjscConfigformanager(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<String>> responseMsg = new ResponseMsg<>();
        try {
            String sourceColumnId = (String) resMapsRb.get("sourceColumnId");
            List<String> getTjscConfigformanager = commTableManagerService.getTjscConfigformanager(sourceColumnId);
            responseMsg.setResponseBody(getTjscConfigformanager);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据tableId查找表是否为真实表
     * @param resMapsRb
     * @return
     */
    @PostMapping("/findTableisTureTable/v1")
    @ApiOperation(value = "根据tableId查找表是否为真实表")
    public ResponseMsg<String> findTableisTureTable(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String tableId = (String) resMapsRb.get("tableId");
            String findTableisTureTable = commTableManagerService.findTableisTureTable(tableId);
            responseMsg.setResponseBody(findTableisTureTable);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据生成方式规则ID获取该对象
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTabFormSelectById/v1")
    @ApiOperation(value = "根据生成方式规则ID获取该对象")
    public ResponseMsg<CbbTabFormSelect> getCbbTabFormSelectById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<CbbTabFormSelect> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            CbbTabFormSelect getCbbTabFormSelectById = commTableManagerService.getCbbTabFormSelectById(id);
            responseMsg.setResponseBody(getCbbTabFormSelectById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *获取基本字段（基本字段及设置为显示的初始化字段）
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTabColumnsJiben/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getCbbTabColumnsJiben(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            String isTemplet = (String) resMapsRb.get("isTemplet");
            List<Map<String, Object>> getCbbTabColumnsJiben = commTableManagerService.getCbbTabColumnsJiben(orgId,deptId,sysId,nodeId,tableId,isTemplet);
            responseMsg.setResponseBody(getCbbTabColumnsJiben);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据表ID删除组合项、统计生成配置信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/deleteGroupConfigByTableId/v1")
    @ApiOperation(value = "根据表ID删除组合项、统计生成配置信息")
    public ResponseMsg deleteGroupConfigByTableId(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String tableId = (String) resMapsRb.get("tableId");
            commTableManagerService.deleteGroupConfigByTableId(tableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *更新分类检索信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/updateCbbTabColSearch/v1")
    @ApiOperation(value = "更新分类检索信息")
    public ResponseMsg updateCbbTabColSearch(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            CbbTabColSearch cbbTabColSearch = (CbbTabColSearch) resMapsRb.get("cbbTabColSearch");
            commTableManagerService.updateCbbTabColSearch(cbbTabColSearch);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getColNmaeByColType/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<String> getColNmaeByColType(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<String> responseMsg = new ResponseMsg<>();
//        try {
//            String tableId = (String) resMapsRb.get("tableId");
//            String colType = (String) resMapsRb.get("colType");
//            String colId = (String) resMapsRb.get("colId");
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            String sysId = (String) resMapsRb.get("sysId");
//            String nodeId = (String) resMapsRb.get("nodeId");
//            String getColNmaeByColType = commTableManagerService.getColNmaeByColType(tableId,colType,colId,orgId,deptId,sysId,nodeId);
//            responseMsg.setResponseBody(getColNmaeByColType);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *根据分类检索ID获取该对象
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTabColSearchById/v1")
    @ApiOperation(value = "根据分类检索ID获取该对象")
    public ResponseMsg<CbbTabColSearch> getCbbTabColSearchById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<CbbTabColSearch> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            CbbTabColSearch getCbbTabColSearchById = commTableManagerService.getCbbTabColSearchById(id);
            responseMsg.setResponseBody(getCbbTabColSearchById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getPageDetailListForZL/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<Map<String, Object>> getPageDetailListForZL(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
//        try {
//            avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page = (avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns>) resMapsRb.get("page");
//            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
//            String sysId = (String) resMapsRb.get("sysId");
//            Map<String, Object> getPageDetailListForZL = commTableManagerService.getPageDetailListForZL(page,parameter,sysId);
//            responseMsg.setResponseBody(getPageDetailListForZL);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *根据表ID获取设置为可见的字段集合
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTabColsByTableId/v1")
    @ApiOperation(value = "根据表ID获取设置为可见的字段集合")
    public ResponseMsg<List<Object[]>> getCbbTabColsByTableId(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Object[]>> responseMsg = new ResponseMsg<>();
        try {
            String tableId = (String) resMapsRb.get("tableId");
            List<Object[]> getCbbTabColsByTableId = commTableManagerService.getCbbTabColsByTableId(tableId);
            responseMsg.setResponseBody(getCbbTabColsByTableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *索引主页面数据更新方法
     * @param resMapsRb
     * @return
     */
    @PostMapping("/updateCbbTabIndex/v1")
    @ApiOperation(value = "索引主页面数据更新方法")
    public ResponseMsg updateCbbTabIndex(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String updatetData = (String) resMapsRb.get("updatetData");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String nodeName = (String) resMapsRb.get("nodeName");
            String tableName = (String) resMapsRb.get("tableName");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            commTableManagerService.updateCbbTabIndex(updatetData,sysId,nodeId,nodeName,tableName,orgId,deptId,loginUserId,loginIp);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getCbbTabColSearchData/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>> getCbbTabColSearchData(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>> responseMsg = new ResponseMsg<>();
//        try {
//            avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page = (avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns>) resMapsRb.get("page");
//            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
//            com.github.pagehelper.Page<Map<String, Object>> getCbbTabColSearchData = commTableManagerService.getCbbTabColSearchData(page,parameter);
//            responseMsg.setResponseBody(getCbbTabColSearchData);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getPageTabSortList/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>> getPageTabSortList(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>> responseMsg = new ResponseMsg<>();
//        try {
//            avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page = (avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns>) resMapsRb.get("page");
//            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
//            com.github.pagehelper.Page<Map<String, Object>> getPageTabSortList = commTableManagerService.getPageTabSortList(page,parameter);
//            responseMsg.setResponseBody(getPageTabSortList);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *新增分类检索信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/insertCbbTabColSearch/v1")
    @ApiOperation(value = "新增分类检索信息")
    public ResponseMsg insertCbbTabColSearch(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            CbbTabColSearch cbbTabColSearch = (CbbTabColSearch) resMapsRb.get("cbbTabColSearch");
            commTableManagerService.insertCbbTabColSearch(cbbTabColSearch);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *复制库结构字段
     * @param resMapsRb
     * @return
     */
    @PostMapping("/copyCbbTabColumns/v1")
    @ApiOperation(value = "复制库结构字段")
    public ResponseMsg copyCbbTabColumns(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String ids = (String) resMapsRb.get("ids");
            String sysId = (String) resMapsRb.get("sysId");
            String tableName = (String) resMapsRb.get("tableName");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            commTableManagerService.copyCbbTabColumns(ids,sysId,tableName,orgId,deptId,param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *新增生成方式规则信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/insertCbbTabFormSelect/v1")
    @ApiOperation(value = "新增生成方式规则信息")
    public ResponseMsg insertCbbTabFormSelect(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            CbbTabFormSelect cbbTabFormSelect = (CbbTabFormSelect) resMapsRb.get("cbbTabFormSelect");
            commTableManagerService.insertCbbTabFormSelect(cbbTabFormSelect);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getColNmaeByColTypeIncidentally/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<String> getColNmaeByColTypeIncidentally(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<String> responseMsg = new ResponseMsg<>();
//        try {
//            String tableId = (String) resMapsRb.get("tableId");
//            String colType = (String) resMapsRb.get("colType");
//            String colId = (String) resMapsRb.get("colId");
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            String sysId = (String) resMapsRb.get("sysId");
//            String nodeId = (String) resMapsRb.get("nodeId");
//            String getColNmaeByColTypeIncidentally = commTableManagerService.getColNmaeByColTypeIncidentally(tableId,colType,colId,orgId,deptId,sysId,nodeId);
//            responseMsg.setResponseBody(getColNmaeByColTypeIncidentally);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *代码维护模块,将excel文件中的数据添加到数据库表中
     * @param resMapsRb
     * @return
     */
    @PostMapping("/inserColCodetFromExcel/v1")
    @ApiOperation(value = "代码维护模块,将excel文件中的数据添加到数据库表中")
    public ResponseMsg inserColCodetFromExcel(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            Vector<Vector<String>> datas = (Vector<Vector<String>>) resMapsRb.get("datas");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String columnId = (String) resMapsRb.get("columnId");
            String tableId = (String) resMapsRb.get("tableId");
            commTableManagerService.inserColCodetFromExcel(datas,orgId,deptId,sysId,columnId,tableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getIndexPageDetailList/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<Map<String, Object>> getIndexPageDetailList(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
//        try {
//            avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page = (avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns>) resMapsRb.get("page");
//            Map<String, Object> parameter = (Map<String, Object>) resMapsRb.get("parameter");
//            String sysId = (String) resMapsRb.get("sysId");
//            Map<String, Object> getIndexPageDetailList = commTableManagerService.getIndexPageDetailList(page,parameter,sysId);
//            responseMsg.setResponseBody(getIndexPageDetailList);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     *根据索引ID获取索引数据
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCbbTabColIndexById/v1")
    @ApiOperation(value = "根据索引ID获取索引数据")
    public ResponseMsg<CbbTabColIndex> getCbbTabColIndexById(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<CbbTabColIndex> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            CbbTabColIndex getCbbTabColIndexById = commTableManagerService.getCbbTabColIndexById(id);
            responseMsg.setResponseBody(getCbbTabColIndexById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据字段ID查找字段设置的通用代码
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getLookupCodeByColumnId/v1")
    @ApiOperation(value = "根据字段ID查找字段设置的通用代码")
    public ResponseMsg<List<Object[]>> getLookupCodeByColumnId(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Object[]>> responseMsg = new ResponseMsg<>();
        try {
            String columnId = (String) resMapsRb.get("columnId");
            List<Object[]> getLookupCodeByColumnId = commTableManagerService.getLookupCodeByColumnId(columnId);
            responseMsg.setResponseBody(getLookupCodeByColumnId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *更新字段排序信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/updateCbbTabColSort/v1")
    @ApiOperation(value = "更新字段排序信息")
    public ResponseMsg updateCbbTabColSort(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            BeanBase beanBase = (BeanBase) resMapsRb.get("beanBase");
            commTableManagerService.updateCbbTabColSort(beanBase);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *清理组织下所有库表数据
     * @param resMapsRb
     * @return
     */
    @PostMapping("/deleteCommTableManagerDatasByOrgId/v1")
    @ApiOperation(value = "清理组织下所有库表数据")
    public ResponseMsg deleteCommTableManagerDatasByOrgId(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            commTableManagerService.deleteCommTableManagerDatasByOrgId(param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *参考模板复制字段信息加载库结构树
     * @param resMapsRb
     * @return
     */
    @PostMapping("/recurFindTreeNodesByParentIdInCommTemplet/v1")
    @ApiOperation(value = "参考模板复制字段信息加载库结构树")
    public ResponseMsg<List<TreeNode>> recurFindTreeNodesByParentIdInCommTemplet(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<TreeNode>> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            String copyNodeData = (String) resMapsRb.get("copyNodeData");
            String sysId = (String) resMapsRb.get("sysId");
            String orgId = (String) resMapsRb.get("orgId");
            List<TreeNode> recurFindTreeNodesByParentIdInCommTemplet = commTableManagerService.recurFindTreeNodesByParentIdInCommTemplet(id,copyNodeData,sysId,orgId);
            responseMsg.setResponseBody(recurFindTreeNodesByParentIdInCommTemplet);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据tabNodeId删除节点著录定义配置信息
     * @param resMapsRb
     * @return
     */
    @PostMapping("/deleteCbbTabNodeRecordByTabNodeId/v1")
    @ApiOperation(value = "根据tabNodeId删除节点著录定义配置信息")
    public ResponseMsg deleteCbbTabNodeRecordByTabNodeId(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String tabNodeId = (String) resMapsRb.get("tabNodeId");
            commTableManagerService.deleteCbbTabNodeRecordByTabNodeId(tabNodeId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }





}
